package com.ruoyi.server.domain.dto;

import com.ruoyi.common.base.BaseDTO;
import com.ruoyi.common.core.domain.model.LoginUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

@Data
@ApiModel(description = "区服新增对象")
public class ServerRegionAddDTO extends BaseDTO {

    /**
     * 区服名称
     */
    @NotEmpty(message = "区服名称不能为空")
    @ApiModelProperty(value = "区服名称", required = true)
    private String regionName;

    /**
     * 团队群号
     */
    @NotBlank(message = "团队群号不能为空")
    @ApiModelProperty(value = "团队群号", required = true)
    private String teamQqCode;

    /**
     * 登录用户
     */
    @ApiModelProperty(value = "登录用户", hidden = true)
    private LoginUser loginUser;
}
